package com.zkzx.freight.bill.mapper.entity;

import java.util.ArrayList;
import java.util.List;


public class OrderItemExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer offset;

    protected Integer rows;

    public OrderItemExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
        rows = null;
        offset = null;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return this.offset;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public Integer getRows() {
        return this.rows;
    }

    public OrderItemExample limit(Integer rows) {
        this.rows = rows;
        return this;
    }

    public OrderItemExample limit(Integer offset, Integer rows) {
        this.offset = offset;
        this.rows = rows;
        return this;
    }

    public OrderItemExample page(Integer page, Integer pageSize) {
        this.offset = page * pageSize;
        this.rows = pageSize;
        return this;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andOrderidIsNull() {
            addCriterion("orderId is null");
            return (Criteria) this;
        }

        public Criteria andOrderidIsNotNull() {
            addCriterion("orderId is not null");
            return (Criteria) this;
        }

        public Criteria andOrderidEqualTo(Integer value) {
            addCriterion("orderId =", value, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidNotEqualTo(Integer value) {
            addCriterion("orderId <>", value, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidGreaterThan(Integer value) {
            addCriterion("orderId >", value, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidGreaterThanOrEqualTo(Integer value) {
            addCriterion("orderId >=", value, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidLessThan(Integer value) {
            addCriterion("orderId <", value, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidLessThanOrEqualTo(Integer value) {
            addCriterion("orderId <=", value, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidIn(List<Integer> values) {
            addCriterion("orderId in", values, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidNotIn(List<Integer> values) {
            addCriterion("orderId not in", values, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidBetween(Integer value1, Integer value2) {
            addCriterion("orderId between", value1, value2, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidNotBetween(Integer value1, Integer value2) {
            addCriterion("orderId not between", value1, value2, "orderid");
            return (Criteria) this;
        }

        public Criteria andProductnameIsNull() {
            addCriterion("productName is null");
            return (Criteria) this;
        }

        public Criteria andProductnameIsNotNull() {
            addCriterion("productName is not null");
            return (Criteria) this;
        }

        public Criteria andProductnameEqualTo(String value) {
            addCriterion("productName =", value, "productname");
            return (Criteria) this;
        }

        public Criteria andProductnameNotEqualTo(String value) {
            addCriterion("productName <>", value, "productname");
            return (Criteria) this;
        }

        public Criteria andProductnameGreaterThan(String value) {
            addCriterion("productName >", value, "productname");
            return (Criteria) this;
        }

        public Criteria andProductnameGreaterThanOrEqualTo(String value) {
            addCriterion("productName >=", value, "productname");
            return (Criteria) this;
        }

        public Criteria andProductnameLessThan(String value) {
            addCriterion("productName <", value, "productname");
            return (Criteria) this;
        }

        public Criteria andProductnameLessThanOrEqualTo(String value) {
            addCriterion("productName <=", value, "productname");
            return (Criteria) this;
        }

        public Criteria andProductnameLike(String value) {
            addCriterion("productName like", value, "productname");
            return (Criteria) this;
        }

        public Criteria andProductnameNotLike(String value) {
            addCriterion("productName not like", value, "productname");
            return (Criteria) this;
        }

        public Criteria andProductnameIn(List<String> values) {
            addCriterion("productName in", values, "productname");
            return (Criteria) this;
        }

        public Criteria andProductnameNotIn(List<String> values) {
            addCriterion("productName not in", values, "productname");
            return (Criteria) this;
        }

        public Criteria andProductnameBetween(String value1, String value2) {
            addCriterion("productName between", value1, value2, "productname");
            return (Criteria) this;
        }

        public Criteria andProductnameNotBetween(String value1, String value2) {
            addCriterion("productName not between", value1, value2, "productname");
            return (Criteria) this;
        }

        public Criteria andProductweightIsNull() {
            addCriterion("productWeight is null");
            return (Criteria) this;
        }

        public Criteria andProductweightIsNotNull() {
            addCriterion("productWeight is not null");
            return (Criteria) this;
        }

        public Criteria andProductweightEqualTo(String value) {
            addCriterion("productWeight =", value, "productweight");
            return (Criteria) this;
        }

        public Criteria andProductweightNotEqualTo(String value) {
            addCriterion("productWeight <>", value, "productweight");
            return (Criteria) this;
        }

        public Criteria andProductweightGreaterThan(String value) {
            addCriterion("productWeight >", value, "productweight");
            return (Criteria) this;
        }

        public Criteria andProductweightGreaterThanOrEqualTo(String value) {
            addCriterion("productWeight >=", value, "productweight");
            return (Criteria) this;
        }

        public Criteria andProductweightLessThan(String value) {
            addCriterion("productWeight <", value, "productweight");
            return (Criteria) this;
        }

        public Criteria andProductweightLessThanOrEqualTo(String value) {
            addCriterion("productWeight <=", value, "productweight");
            return (Criteria) this;
        }

        public Criteria andProductweightLike(String value) {
            addCriterion("productWeight like", value, "productweight");
            return (Criteria) this;
        }

        public Criteria andProductweightNotLike(String value) {
            addCriterion("productWeight not like", value, "productweight");
            return (Criteria) this;
        }

        public Criteria andProductweightIn(List<String> values) {
            addCriterion("productWeight in", values, "productweight");
            return (Criteria) this;
        }

        public Criteria andProductweightNotIn(List<String> values) {
            addCriterion("productWeight not in", values, "productweight");
            return (Criteria) this;
        }

        public Criteria andProductweightBetween(String value1, String value2) {
            addCriterion("productWeight between", value1, value2, "productweight");
            return (Criteria) this;
        }

        public Criteria andProductweightNotBetween(String value1, String value2) {
            addCriterion("productWeight not between", value1, value2, "productweight");
            return (Criteria) this;
        }

        public Criteria andProductpackagIsNull() {
            addCriterion("productPackag is null");
            return (Criteria) this;
        }

        public Criteria andProductpackagIsNotNull() {
            addCriterion("productPackag is not null");
            return (Criteria) this;
        }

        public Criteria andProductpackagEqualTo(String value) {
            addCriterion("productPackag =", value, "productpackag");
            return (Criteria) this;
        }

        public Criteria andProductpackagNotEqualTo(String value) {
            addCriterion("productPackag <>", value, "productpackag");
            return (Criteria) this;
        }

        public Criteria andProductpackagGreaterThan(String value) {
            addCriterion("productPackag >", value, "productpackag");
            return (Criteria) this;
        }

        public Criteria andProductpackagGreaterThanOrEqualTo(String value) {
            addCriterion("productPackag >=", value, "productpackag");
            return (Criteria) this;
        }

        public Criteria andProductpackagLessThan(String value) {
            addCriterion("productPackag <", value, "productpackag");
            return (Criteria) this;
        }

        public Criteria andProductpackagLessThanOrEqualTo(String value) {
            addCriterion("productPackag <=", value, "productpackag");
            return (Criteria) this;
        }

        public Criteria andProductpackagLike(String value) {
            addCriterion("productPackag like", value, "productpackag");
            return (Criteria) this;
        }

        public Criteria andProductpackagNotLike(String value) {
            addCriterion("productPackag not like", value, "productpackag");
            return (Criteria) this;
        }

        public Criteria andProductpackagIn(List<String> values) {
            addCriterion("productPackag in", values, "productpackag");
            return (Criteria) this;
        }

        public Criteria andProductpackagNotIn(List<String> values) {
            addCriterion("productPackag not in", values, "productpackag");
            return (Criteria) this;
        }

        public Criteria andProductpackagBetween(String value1, String value2) {
            addCriterion("productPackag between", value1, value2, "productpackag");
            return (Criteria) this;
        }

        public Criteria andProductpackagNotBetween(String value1, String value2) {
            addCriterion("productPackag not between", value1, value2, "productpackag");
            return (Criteria) this;
        }

        public Criteria andProductsortIsNull() {
            addCriterion("productSort is null");
            return (Criteria) this;
        }

        public Criteria andProductsortIsNotNull() {
            addCriterion("productSort is not null");
            return (Criteria) this;
        }

        public Criteria andProductsortEqualTo(String value) {
            addCriterion("productSort =", value, "productsort");
            return (Criteria) this;
        }

        public Criteria andProductsortNotEqualTo(String value) {
            addCriterion("productSort <>", value, "productsort");
            return (Criteria) this;
        }

        public Criteria andProductsortGreaterThan(String value) {
            addCriterion("productSort >", value, "productsort");
            return (Criteria) this;
        }

        public Criteria andProductsortGreaterThanOrEqualTo(String value) {
            addCriterion("productSort >=", value, "productsort");
            return (Criteria) this;
        }

        public Criteria andProductsortLessThan(String value) {
            addCriterion("productSort <", value, "productsort");
            return (Criteria) this;
        }

        public Criteria andProductsortLessThanOrEqualTo(String value) {
            addCriterion("productSort <=", value, "productsort");
            return (Criteria) this;
        }

        public Criteria andProductsortLike(String value) {
            addCriterion("productSort like", value, "productsort");
            return (Criteria) this;
        }

        public Criteria andProductsortNotLike(String value) {
            addCriterion("productSort not like", value, "productsort");
            return (Criteria) this;
        }

        public Criteria andProductsortIn(List<String> values) {
            addCriterion("productSort in", values, "productsort");
            return (Criteria) this;
        }

        public Criteria andProductsortNotIn(List<String> values) {
            addCriterion("productSort not in", values, "productsort");
            return (Criteria) this;
        }

        public Criteria andProductsortBetween(String value1, String value2) {
            addCriterion("productSort between", value1, value2, "productsort");
            return (Criteria) this;
        }

        public Criteria andProductsortNotBetween(String value1, String value2) {
            addCriterion("productSort not between", value1, value2, "productsort");
            return (Criteria) this;
        }

        public Criteria andProductbulkIsNull() {
            addCriterion("productBulk is null");
            return (Criteria) this;
        }

        public Criteria andProductbulkIsNotNull() {
            addCriterion("productBulk is not null");
            return (Criteria) this;
        }

        public Criteria andProductbulkEqualTo(String value) {
            addCriterion("productBulk =", value, "productbulk");
            return (Criteria) this;
        }

        public Criteria andProductbulkNotEqualTo(String value) {
            addCriterion("productBulk <>", value, "productbulk");
            return (Criteria) this;
        }

        public Criteria andProductbulkGreaterThan(String value) {
            addCriterion("productBulk >", value, "productbulk");
            return (Criteria) this;
        }

        public Criteria andProductbulkGreaterThanOrEqualTo(String value) {
            addCriterion("productBulk >=", value, "productbulk");
            return (Criteria) this;
        }

        public Criteria andProductbulkLessThan(String value) {
            addCriterion("productBulk <", value, "productbulk");
            return (Criteria) this;
        }

        public Criteria andProductbulkLessThanOrEqualTo(String value) {
            addCriterion("productBulk <=", value, "productbulk");
            return (Criteria) this;
        }

        public Criteria andProductbulkLike(String value) {
            addCriterion("productBulk like", value, "productbulk");
            return (Criteria) this;
        }

        public Criteria andProductbulkNotLike(String value) {
            addCriterion("productBulk not like", value, "productbulk");
            return (Criteria) this;
        }

        public Criteria andProductbulkIn(List<String> values) {
            addCriterion("productBulk in", values, "productbulk");
            return (Criteria) this;
        }

        public Criteria andProductbulkNotIn(List<String> values) {
            addCriterion("productBulk not in", values, "productbulk");
            return (Criteria) this;
        }

        public Criteria andProductbulkBetween(String value1, String value2) {
            addCriterion("productBulk between", value1, value2, "productbulk");
            return (Criteria) this;
        }

        public Criteria andProductbulkNotBetween(String value1, String value2) {
            addCriterion("productBulk not between", value1, value2, "productbulk");
            return (Criteria) this;
        }

        public Criteria andStandardlongIsNull() {
            addCriterion("standardLong is null");
            return (Criteria) this;
        }

        public Criteria andStandardlongIsNotNull() {
            addCriterion("standardLong is not null");
            return (Criteria) this;
        }

        public Criteria andStandardlongEqualTo(String value) {
            addCriterion("standardLong =", value, "standardlong");
            return (Criteria) this;
        }

        public Criteria andStandardlongNotEqualTo(String value) {
            addCriterion("standardLong <>", value, "standardlong");
            return (Criteria) this;
        }

        public Criteria andStandardlongGreaterThan(String value) {
            addCriterion("standardLong >", value, "standardlong");
            return (Criteria) this;
        }

        public Criteria andStandardlongGreaterThanOrEqualTo(String value) {
            addCriterion("standardLong >=", value, "standardlong");
            return (Criteria) this;
        }

        public Criteria andStandardlongLessThan(String value) {
            addCriterion("standardLong <", value, "standardlong");
            return (Criteria) this;
        }

        public Criteria andStandardlongLessThanOrEqualTo(String value) {
            addCriterion("standardLong <=", value, "standardlong");
            return (Criteria) this;
        }

        public Criteria andStandardlongLike(String value) {
            addCriterion("standardLong like", value, "standardlong");
            return (Criteria) this;
        }

        public Criteria andStandardlongNotLike(String value) {
            addCriterion("standardLong not like", value, "standardlong");
            return (Criteria) this;
        }

        public Criteria andStandardlongIn(List<String> values) {
            addCriterion("standardLong in", values, "standardlong");
            return (Criteria) this;
        }

        public Criteria andStandardlongNotIn(List<String> values) {
            addCriterion("standardLong not in", values, "standardlong");
            return (Criteria) this;
        }

        public Criteria andStandardlongBetween(String value1, String value2) {
            addCriterion("standardLong between", value1, value2, "standardlong");
            return (Criteria) this;
        }

        public Criteria andStandardlongNotBetween(String value1, String value2) {
            addCriterion("standardLong not between", value1, value2, "standardlong");
            return (Criteria) this;
        }

        public Criteria andStandardwidthIsNull() {
            addCriterion("standardWidth is null");
            return (Criteria) this;
        }

        public Criteria andStandardwidthIsNotNull() {
            addCriterion("standardWidth is not null");
            return (Criteria) this;
        }

        public Criteria andStandardwidthEqualTo(String value) {
            addCriterion("standardWidth =", value, "standardwidth");
            return (Criteria) this;
        }

        public Criteria andStandardwidthNotEqualTo(String value) {
            addCriterion("standardWidth <>", value, "standardwidth");
            return (Criteria) this;
        }

        public Criteria andStandardwidthGreaterThan(String value) {
            addCriterion("standardWidth >", value, "standardwidth");
            return (Criteria) this;
        }

        public Criteria andStandardwidthGreaterThanOrEqualTo(String value) {
            addCriterion("standardWidth >=", value, "standardwidth");
            return (Criteria) this;
        }

        public Criteria andStandardwidthLessThan(String value) {
            addCriterion("standardWidth <", value, "standardwidth");
            return (Criteria) this;
        }

        public Criteria andStandardwidthLessThanOrEqualTo(String value) {
            addCriterion("standardWidth <=", value, "standardwidth");
            return (Criteria) this;
        }

        public Criteria andStandardwidthLike(String value) {
            addCriterion("standardWidth like", value, "standardwidth");
            return (Criteria) this;
        }

        public Criteria andStandardwidthNotLike(String value) {
            addCriterion("standardWidth not like", value, "standardwidth");
            return (Criteria) this;
        }

        public Criteria andStandardwidthIn(List<String> values) {
            addCriterion("standardWidth in", values, "standardwidth");
            return (Criteria) this;
        }

        public Criteria andStandardwidthNotIn(List<String> values) {
            addCriterion("standardWidth not in", values, "standardwidth");
            return (Criteria) this;
        }

        public Criteria andStandardwidthBetween(String value1, String value2) {
            addCriterion("standardWidth between", value1, value2, "standardwidth");
            return (Criteria) this;
        }

        public Criteria andStandardwidthNotBetween(String value1, String value2) {
            addCriterion("standardWidth not between", value1, value2, "standardwidth");
            return (Criteria) this;
        }

        public Criteria andStandardhighIsNull() {
            addCriterion("standardHigh is null");
            return (Criteria) this;
        }

        public Criteria andStandardhighIsNotNull() {
            addCriterion("standardHigh is not null");
            return (Criteria) this;
        }

        public Criteria andStandardhighEqualTo(String value) {
            addCriterion("standardHigh =", value, "standardhigh");
            return (Criteria) this;
        }

        public Criteria andStandardhighNotEqualTo(String value) {
            addCriterion("standardHigh <>", value, "standardhigh");
            return (Criteria) this;
        }

        public Criteria andStandardhighGreaterThan(String value) {
            addCriterion("standardHigh >", value, "standardhigh");
            return (Criteria) this;
        }

        public Criteria andStandardhighGreaterThanOrEqualTo(String value) {
            addCriterion("standardHigh >=", value, "standardhigh");
            return (Criteria) this;
        }

        public Criteria andStandardhighLessThan(String value) {
            addCriterion("standardHigh <", value, "standardhigh");
            return (Criteria) this;
        }

        public Criteria andStandardhighLessThanOrEqualTo(String value) {
            addCriterion("standardHigh <=", value, "standardhigh");
            return (Criteria) this;
        }

        public Criteria andStandardhighLike(String value) {
            addCriterion("standardHigh like", value, "standardhigh");
            return (Criteria) this;
        }

        public Criteria andStandardhighNotLike(String value) {
            addCriterion("standardHigh not like", value, "standardhigh");
            return (Criteria) this;
        }

        public Criteria andStandardhighIn(List<String> values) {
            addCriterion("standardHigh in", values, "standardhigh");
            return (Criteria) this;
        }

        public Criteria andStandardhighNotIn(List<String> values) {
            addCriterion("standardHigh not in", values, "standardhigh");
            return (Criteria) this;
        }

        public Criteria andStandardhighBetween(String value1, String value2) {
            addCriterion("standardHigh between", value1, value2, "standardhigh");
            return (Criteria) this;
        }

        public Criteria andStandardhighNotBetween(String value1, String value2) {
            addCriterion("standardHigh not between", value1, value2, "standardhigh");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}